// 这是后台首页接口
import axios from '@/utils/axios'

import type { AxiosResponse } from 'axios'
import type { AxiosDefaultTypes } from '@/utils/axios'
import type { AxiosAdminBlockTypes } from './types'

export * from './types'

// 请求后台首页数据块
export const getHomeBlock: () => Promise<
  AxiosResponse<AxiosDefaultTypes<AxiosAdminBlockTypes>, any>
> = () => {
  return axios.get<AxiosDefaultTypes<AxiosAdminBlockTypes>>('/api/admin/block')
}
